<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<html>
<head>
<title>后台管理系统</title>
<c:set value="${pageContext.request.contextPath}" var="path1"
	scope="page" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/css/layout-default-latest.css">
<link href="${path1}/static/css/bootstrap.min.css" rel="stylesheet">

<!-- MetisMenu CSS -->
<link href="${path1}/static/css/plugins/metisMenu/metisMenu.min.css"
	rel="stylesheet">

<!-- Timeline CSS -->
<link href="${path1}/static/css/plugins/timeline.css" rel="stylesheet">

<!-- Custom CSS -->
<link href="${path1}/static/css/sb-admin-2.css" rel="stylesheet">

<!-- Morris Charts CSS -->
<link href="${path1}/static/css/plugins/morris.css" rel="stylesheet">

<!-- Custom Fonts -->
<link href="${path1}/static/font-awesome-4.1.0/css/font-awesome.min.css"
	rel="stylesheet" type="text/css">
</head>
<body>

	<div id="wrapper">
		<!-- Navigation -->
		<nav class="navbar navbar-default navbar-static-top" role="navigation"
			style="margin-bottom: 0">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle" data-toggle="collapse"
					data-target=".navbar-collapse">
					<span class="sr-only">Toggle navigation</span> <span
						class="icon-bar"></span> <span class="icon-bar"></span>

				</button>
				<a class="navbar-brand" href="/hostManager">后台管理系统</a>
				<!-- /.navbar-header -->
			</div>
			<ul class="nav navbar-top-links navbar-right">
				<a class="navbar-brand" href="/hostManager/init">提交修改</a>
				<li class="dropdown"><a class="dropdown-toggle"
					data-toggle="dropdown" href="#"> <i class="fa fa-user fa-fw"></i>
						<i class="fa fa-caret-down"></i>
				</a>
					<ul class="dropdown-menu dropdown-user">
						<li><a href="#"><i class="fa fa-user fa-fw"></i>
								Welcome&nbsp;<shiro:principal /></a></li>
						<li class="divider"></li>
						<li><a href="${pageContext.request.contextPath}/logout"><i
								class="fa fa-sign-out fa-fw"></i> Logout</a></li>
					</ul> <!-- /.dropdown-user --></li>
			</ul>
		</nav>
	</div>
	<div class="navbar-default sidebar" role="navigation">
		<div class="sidebar-nav navbar-collapse">
			<ul class="nav" id="side-menu">
				<!--<li class="sidebar-search">
                            <div class="input-group custom-search-form">
                                <input type="text" class="form-control" placeholder="Search...">
                                <span class="input-group-btn">
                                <button class="btn btn-default" type="button">
                                    <i class="fa fa-search"></i>
                                </button>
                            </span>
                            </div>
                        </li>  -->
				<c:forEach items="${menus}" var="m">
					<li><a href="${pageContext.request.contextPath}/${m.url}"
						target="content"><i class="fa fa-edit fa-fw"></i> ${m.name}</a></li>
				</c:forEach>
			</ul>

			<!-- /.navbar-header -->
		</div>

	</div>
	</nav>

	<div id="page-wrapper">
		<div class="row">
			<div class="col-lg-12">
				<iframe width="100%" height="100%" name="content"
					src="${pageContext.request.contextPath}/welcome" frameborder="0"
					scrolling="auto"></iframe>
			</div>
		</div>
	</div>
	</div>

	<script
		src="${pageContext.request.contextPath}/static/js/jquery-1.11.0.min.js"></script>
	<script
		src="${pageContext.request.contextPath}/static/js/jquery.layout-latest.min.js"></script>
	<script>
		$(function() {
			$(document).ready(function() {
				$('body').layout({
					applyDemoStyles : true
				});
			});
		});
	</script>
	<!-- jQuery -->
	<script src="${path1}/static/js/jquery.js"></script>

	<!-- Bootstrap Core JavaScript -->
	<script src="${path1}/static/js/bootstrap.min.js"></script>

	<!-- Metis Menu Plugin JavaScript -->
	<script src="${path1}/static/js/plugins/metisMenu/metisMenu.min.js"></script>

	<!-- Morris Charts JavaScript -->
	<script src="${path1}/static/js/plugins/morris/raphael.min.js"></script>
	<script src="${path1}/static/js/plugins/morris/morris.min.js"></script>
	<script src="${path1}/static/js/plugins/morris/morris-data.js"></script>

	<!-- Custom Theme JavaScript -->
	<script src="${path1}/static/js/sb-admin-2.js"></script>
</body>
</html>